home *** CD-ROM | disk | FTP | other *** search
-
-
-
- UNIQ ST-UNIX User's Manual UNIQ
-
-
-
- COMMAND
- uniq - display duplicate lines in a file.
-
- FORMAT
- uniq [ -udc [ +n ] [ -n ] ] [ input [ output ] ]
-
- DESCRIPTION
- _✓U_✓n_✓i_✓q reads the input file (defaul standard input), comparing
- adjacent lines. Normally the second and succeeding copies
- of repeated lines are removed with the rest written to the
- output file (default standard output). Repeated lines must
- be adjacent in order to be found. The -u option causes just
- the unrepeated lines to be output. The -d option causes
- just one copy of the repeated lines be output. The default
- action is -ud
-
- The -c option over-rides -u and -d generating output in the
- default format with each line labelled with a count of the
- number of times it occurred.
-
- The -_✓n argument causes the first n fields of the line to be
- skipped before comparison starts. The +_✓n argument causes
- the first n characters of the field to be skipped, where
- fields are skipped first. Fields are defined as being
- separated by white space.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Printed 28/March/1988 30 March 1987 1
-
-
-
-